package org.teameleven.quicken.facade;

import java.math.BigDecimal;

import org.teameleven.quicken.accounts.Account;

public class BankFacade {
	/**
	 * @uml.property  name="checking"
	 * @uml.associationEnd  
	 */
	private Account checking;
	/**
	 * @uml.property  name="savings"
	 * @uml.associationEnd  
	 */
	private Account savings;
	/**
	 * @uml.property  name="stocks"
	 * @uml.associationEnd  
	 */
	private Account stocks;

	
	public void displayBalances(){
		System.out.println("checking balance: " + checking.getAmount());
		System.out.println("savings balance: " + savings.getAmount());
		System.out.println("stocks balance: " + stocks.getAmount());
	}
	
	public void makeDeposit(BigDecimal deposit){
		checking.deposit(deposit);
		savings.deposit(deposit);
		stocks.deposit(deposit);
	}

	public void payAllMonthlyBills(){
		checking.payMonthlyBills();
		savings.payMonthlyBills();
		stocks.payMonthlyBills();
	}
	
	/**
	 * @param checking  the checking to set
	 * @uml.property  name="checking"
	 */
	public void setChecking(Account checking) {
		this.checking = checking;
	}

	/**
	 * @param savings  the savings to set
	 * @uml.property  name="savings"
	 */
	public void setSavings(Account savings) {
		this.savings = savings;
	}

	/**
	 * @param stocks  the stocks to set
	 * @uml.property  name="stocks"
	 */
	public void setStocks(Account stocks) {
		this.stocks = stocks;
	}

	public void getCheckingAccountBalance() {
		System.out.println("Your checking account balance is: "
				+ checking.getAmount());
	}

	public void getSavingAccountBalance() {
		System.out.println("Your savings account balance is: "
				+ savings.getAmount());
	}

	public void getEdtradeAccountBalance() {
		System.out.println("Your etrade stock account balance is: "
				+ stocks.getAmount());
	}
}
